1) Is 'false' is false?
2) Is ' ' is false?
3) What about {}?
4) Tell me about []?
תשובות
הוסף תשובה
|
לצפיה בתשובות
אוגוסט 2019
1) No. Because, it's a string with length greater than 0. Only empty string is false.
2) No. Because, it's not an empty string. There is a white space in it.
3) true. It's an object. An object without any property is an object can't be falsy.
4) This is also truthy. It's an array object (array is child of object) is truthy.
סיטרין טק
14 עובדים
משרדים ראשיים: בני ברק
Citrin-Tech is specialized in creating ad-tech solutions for companies operating in the online space. We aspire to be a One-Stop-Shop that covers all the essential needs for your marketing departments and call-centers.